﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SampleFactory
{
   public class SendFactory
    {
       public ISender Produce(string Type)
       {
           ISender send=null;
           if (Type.Equals("mail"))
           {
               send = new MailSend();
           }
           if (Type.Equals("sim"))
           {
               send = new SimSend();
           }

           return send;
 
       }
       public static ISender ProduceMail()
       {
           return new MailSend();
       }
       public static ISender ProduceSim()
       {
           return new SimSend();
       }
    }
}
